map-range 0.1.2

map a value from a range to another range
Documentation

map-range

A super simple crate to map values from a range to another range.

dependency status build status crates.io docs.rs

Example

use map_range::MapRange;
let _ = 5_i32.map_range(0..10, -10..10);